<div>
    		<table width="100%">

    				<tr>
						<td>
							<div id="large_profile_image_loader_div" style="display:none;"><img src="images/LoadingBar.gif" width="64px" height="64px"/></div>
						<?php
							if($loggedUserObj->userId==$_SESSION['Allyfolio_User_ID'])
							{
						?>
							<a href="javascript:void(0)" onclick="return openFile('large_profile_pic_file')">
						<?php
							}
						?>
								<div >
		                              
									<img id="large_profile_pic_img" src="<?php echo "uploads/image_crop.php?image=/".$loggedUserObj->profileLargePicPath."&width=160&height=52&cropratio=160:52";  ?>" />
		
								</div>
						<?php
							if($loggedUserObj->userId==$_SESSION['Allyfolio_User_ID'])
							{
						?>
							</a>
		
							<form id="large_profile_pic_form" name="large_profile_pic_form" action="ajax/update_data.php?action=st_update" enctype="multipart/form-data" >
		
								<input type="file" id="large_profile_pic_file" name="large_profile_pic_file" style="display:none;" accept="image/*" onchange="return uploadLargeProfilePic();" />
		
							</form>	
						<?php
							}
						?>
						</td>
    					<td>

							<div id="profile_image_loader_div" style="display:none;"><img src="images/LoadingBar.gif" width="64px" height="64px"/></div>

							<a href="javascript:void(0)" onclick="return openFile('profile_pic_file')">

								<div class="home_pic">
                                    
									<img id="profile_pic_img" src="<?php echo "uploads/image_crop.php?image=/".$loggedUserObj->profilePicPath."&width=57&height=52&cropratio=57:52";  ?>" />

    							</div>

							</a>

							<form id="profile_pic_form" name="profile_pic_form" action="ajax/update_data.php?action=st_update" enctype="multipart/form-data" >

								<input type="file" id="profile_pic_file" name="profile_pic_file" style="display:none;" accept="image/*" onchange="return uploadProfilePic();" />

							</form>			

						</td>

    					

    				</tr>

    				<tr>

                        <td class="left" colspan="2">

                            <?php echo $loggedUserObj->profileName."<br /> ".$loggedUserObj->countryName; ?>

                        </td>

                    </tr>

            </table>

			<table width="100%" >

				

<tr>

	<td>

		<table>

			<tr>

				<td align="center" width="20%">
                    <div id="nav">
                        <div style="float: left;" id="all_notification_li">
                            <div id="notificationLink">
                                <img src="images/ico/1.png" /><span id="notification_count" style="display: none;"></span>
                            </div>                            
                            <div id="notificationContainer">
                                <div id="notificationTitle">Notifications</div>
                                <div id="notificationsBody" class="notifications"></div>
                                <div id="notificationFooter"><a href="#"></a></div>
                            </div>
                        </div>
                    </div>
                </td>

				<td align="center" width="20%">

                     <div>

                        <div style="float: left;"><img src="images/ico/2.png" /></div>

                        <div id="mreq" style="display:none;position: absolute;border: 1px solid red;border-radius: 10px 10px 10px 10px;">6</div> 

                    </div>

                </td>

				<td align="center" width="20%">

                    <div id="nav">

                        <div style="float: left;" id="notification_li">
                            <div id="notificationLink">
                                <img src="images/ico/3.png" /><span id="notification_count" style="display: none;"></span>
                            </div>                            
                            <div id="freqnotificationContainer" >
                                <div id="notificationTitle">Friend Requests</div>
                                <div id="notificationsBody" class="notifications"></div>
                                <div id="notificationFooter"><a href="#"></a></div>
                                
                            </div>
                        </div>
                            
                    </div>

                </td>

				<td align="center" width="20%">

                    <div>

                        <div style="float: left;"><a href="dna.php?t=<?php echo $loggedUserObj->allyfolioUserID; ?>" title="DNA"><img src="images/ico/4.png" /></a></div>

                        <div id="dnareq" style="display:none;position: absolute;border: 1px solid red;border-radius: 10px 10px 10px 10px;">6</div> 

                    </div>

                </td>

			</tr>

			

		</table>

	</td>

</tr>			

<tr>

				<td>
                    <style>
                    .removeCmnt{
                        cursor:pointer;
                        display:<?php if(isset($_SESSION["Allyfolio_User_ID"]) && is_numeric($_SESSION["Allyfolio_User_ID"])){ echo "block"; } else { echo "none"; } ?>;
                    }
                    
                    .header{
                        width:1000px !important;
                    }
                    
                    
                    </style>
                    <br />
					<ul class="font14" style="color:#7b7f81; font-weight:bold;">
                        <li id="idNewUpdates" style="display: none;"><a href="javascript:void(0);" onclick="getTopFiles(4,4,1, 0);"><span id="idNewUpdatesCount"></span></a></li>
						
                        <!-- onclick="showStatusUpdateBox();"-->
                        <li  class="selectedHomeMenu" ><a href="home.php">Status</a>  <?php echo count($loggedUserObj->latestStatusNotificationsArr)>0?"(".count($loggedUserObj->latestStatusNotificationsArr).")":""; ?></li>

						<li><a href="friends.php">Friends</a> <!--<span id="tFCount" style="cursor: pointer;" onclick="showFriendRequests();"></span>-->

                        </li>

						<li><a href="#">Photos</a> <span id="tPhotoCount" style="cursor: pointer;" onclick="showFriendRequests();"></span></li>

						<li><a href="events.php">Events

                        <?php echo count($loggedUserObj->latestEventsNotificationsArr)>0?"(".count($loggedUserObj->latestEventsNotificationsArr).")":""; ?>

                        </a>

                        </li>

						<li><a href="messages.php">Messages</a> <span id="tMsgCount" style="cursor: pointer;" onclick="showFriendRequests();"></span>

                        </li>

						<li><a href="pagelist.php">My Pages</a> <span id="tPickPageCount" style="cursor: pointer;" onclick="showFriendRequests();"></span></li>

						<li><a href="create_page.php">Create pages</a> <span id="tPageCount" style="cursor: pointer;" onclick="showFriendRequests();"></span></li>

                        <li><a href="techno.php">Technopath</a> <span id="tTechnoCount" style="cursor: pointer;" onclick="showFriendRequests();"></span></li>

						<li><a href="blog.php">Blogs</a> <span id="tBlogCount" style="cursor: pointer;" onclick="showFriendRequests();"></span></li>

					</ul>

				</td>

			</tr>

			<tr>

				<td>

					<ul class="font14" style="color:#7b7f81; font-weight:bold; margin-top:20px;">

						<li class="font18" style="color:#0c1519">Applications</li>

						<li><a href="games_apps.php">Game Apps</a></li>

						<li><a href="#">Active Game</a></li>

				  </ul>

				</td>

			</tr>

            <tr>

				<td>

					<ul class="font14" id="clusters" style="color:#7b7f81; font-weight:bold; margin-top:20px;">

						<li class="clusternotchange font18" style="color:#0c1519">Cluster</li>

						<li class="clusternotchange"><a onclick="createCluster();">Create Cluster</a></li>

					    <?php

                        $oDropfilters= new CGetFilters();

                        $clusterDrops=$oDropfilters->getClusters($loggedUserObj->userId,1);                       

                        

                        $clusterStr='';

                                foreach($clusterDrops as $mycluster){

                                    $clusterStr.='<li><a onclick="showMyClusters('.$mycluster["Cluster_ID"].',this.innerHTML);">'.$mycluster["Cluster_Name"].'</a></li>';

                                }

                        echo $clusterStr;

                        ?>

				  </ul>

				</td>

			</tr>

			

			<tr>

				<td align="left">

					<ul style="color:#7b7f81; font-weight:bold; margin-top:20px; list-style:none">

						<li style="text-align:center; box-shadow:none !important; padding:0; margin:0;">Pizza Hut<div class="abcdef"></div></li>

						

					</ul>

				</td>

			</tr>

			</table>
            </div>
            <script>
    function uploadLargeProfilePic()
	{
		if(document.getElementById("large_profile_pic_file").value!="")
		{
			document.getElementById("large_profile_image_loader_div").style.display="";
			formdata = false;
			if (window.FormData) {
				formdata = new FormData(document.getElementById("large_profile_pic_form"));
			}

			var xmlhttp;
			if (window.XMLHttpRequest)
			{// code for IE7+, Firefox, Chrome, Opera, Safari
				xmlhttp=new XMLHttpRequest();
			}
			else
			{// code for IE6, IE5
				xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
			xmlhttp.onreadystatechange=function()
			{
				if (xmlhttp.readyState==4 && xmlhttp.status==200)
				{	
					var res=xmlhttp.responseText;	
					resArr=res.split("|~|");
					var divContent="";
					if(resArr[0]=="SUCCESS")
					{
						document.getElementById("large_profile_pic_img").src='uploads/image_crop.php?image=/'+resArr[1]+'&width=160&height=52&cropratio=160:52';
						document.getElementById("large_profile_image_loader_div").style.display="none";
					}
					else
					{
						document.getElementById("large_profile_image_loader_div").style.display="none";
						alertify.alert(resArr[1]);
					}
				}
			}	
			xmlhttp.open("POST","ajax_upload_profile_pic.php",true);
			xmlhttp.send(formdata);
		}
	}

    	function uploadProfilePic()

    	{

			if(document.getElementById("profile_pic_file").value!="")

			{

				document.getElementById("profile_image_loader_div").style.display="";

				formdata = false;

				if (window.FormData) {

					formdata = new FormData(document.getElementById("profile_pic_form"));

				}

			

				var xmlhttp;

						

				if (window.XMLHttpRequest)

				{// code for IE7+, Firefox, Chrome, Opera, Safari

					xmlhttp=new XMLHttpRequest();

				}

				else

				{// code for IE6, IE5

					xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");

				}

				xmlhttp.onreadystatechange=function()

				{

					if (xmlhttp.readyState==4 && xmlhttp.status==200)

					{	

						var res=xmlhttp.responseText;	

						resArr=res.split("|~|");

						var divContent="";

						if(resArr[0]=="SUCCESS")

						{

							

							document.getElementById("profile_pic_img").src='uploads/image_crop.php?image=/'+resArr[1]+'&width=57&height=52&cropratio=57:52';

							document.getElementById("profile_image_loader_div").style.display="none";

						}

						else

						{

							document.getElementById("profile_image_loader_div").style.display="none";

							alertify.alert(resArr[1]);

						}

					}

				}	

				xmlhttp.open("POST","ajax_upload_profile_pic.php",true);

				xmlhttp.send(formdata);

			}

		}
		function openFile(fileControlId)

		{

			$("#"+fileControlId).trigger("click");

		}
    
        //left side notification popup
        var nNotifyPopupMinutesT=1000*20*1;
        var feedsTesting=1000;
        var myNotifyPopupInterval=setInterval(function(){myNotifyPopupTimer('<?php echo $loggedUserObj->userId; ?>')},nNotifyPopupMinutesT);
        
        function myNotifyPopupTimer(uid) {
            getNotifiedActivities(uid);
        }
        
        //jodhraj work starts
        function getFriendsRequestsCount()
        {
            $.ajax({
              cache:false,  
        	  url: "ajax_search/ajax_manageRequests.php?action=getFriendrequestsCount",
        	  success: function( data ) {
        	       if(parseInt(data)>0)
                   {
                        $("#notification_li #notification_count").html(data);
                        $("#notification_li #notification_count").show();
                   }
                   else
                   {
                        $("#notification_li #notification_count").html("");
                        $("#notification_li #notification_count").fadeOut("slow");
                   }
        	   }
            });   
        }
        
        function showFriendRequests()
        {
            $.ajax({
              cache:false,  
        	  url: "ajax_search/ajax_manageRequests.php?action=getFriendRequestPopup",
        	  success: function( data ) {
        	       $("#notification_li #notificationsBody").html(data);
                   $("#notification_li #freqnotificationContainer").show(300);
                    $("#notification_li #notification_count").fadeOut("slow");
        	       //alert(data);
        	       //document.getElementById('notificationContainerfreq').innerHTML=data;
        	   }
            });
        }
        
        function getMoreFriends(pagecount)
        {
            $.ajax({
              cache:false,  
        	  url: "ajax_search/ajax_manageRequests.php?action=getFriendRequestPopup&nextpage="+pagecount,
        	  success: function( data ) {
        	       $("#notification_li #notificationsBody").html(data);
                   $("#notification_li #freqnotificationContainer").show(300);
                    $("#notification_li #notification_count").fadeOut("slow");
        	       //document.getElementById('notificationContainerfreq').innerHTML=data;
        	   }
            });
        }
        
        var requeststarr=new Array();
        requeststarr[1]="Accepted";
        requeststarr[0]="Blocked";
        requeststarr[4]="Rejected";
        function changeStatusFriendRequest(status,recordid,rowid)
        {
            if(recordid>0 && document.getElementById('requesttd_'+rowid))
            {
                $.ajax({
                  cache:false,  
                  async:false,
                  url: "ajax_search/ajax_manageRequests.php?action=changereqstatus&recordid="+recordid+"&status="+status,
            	  success: function( data ) {
            	    if(trim(data)=="success")
                    {
                        document.getElementById('requesttd_'+rowid).innerHTML="<b>"+requeststarr[status]+"</b>";
                        return false;
                    }
                    
            	  }
            	});
                getFriendsRequestsCount();
            }
        }
            
        function sendFriendRequest(touserid,rowid)
        {
            alertify.confirm("Are you sure, you want to send friend request?", function (e) {
        		if (e) {
        			alertify.success("You've clicked OK");
        			$.ajax({
                      cache:false,  
                      async:false,
                      url: "ajax_search/ajax_manageRequests.php?action=friendrequest&touserid="+touserid,
                	  success: function( data ) {
                	    if(trim(data)=="success")
                        {
                            alertify.alert("You have successfully sent friend request.");
                            document.getElementById('sendreqtd_'+rowid).innerHTML="<b>Request Sent.</b>";
                            return false;
                        }
                        
                	  }
                	});
        		} else {
        			alertify.error("You've clicked Cancel");
        		}
        	});
        	
            
            
        }
        
        getFriendsRequestsCount();
        
        //jodhraj work ends
			</script>